<template>
  <div class="obob">
    <img src="http://o6wndwjxn.qnssl.com/c2c9e201811010928479989.png">
    <div class="text">
      <div class="obobs">课程优惠券</div>
      <div class="discount">￥{{coupons.discount}}</div>
      <div class="obsde">仅限该课程使用</div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['coupons'],
  data () {
    return {

    }
  },
  created () {
    // console.log(this.coupons)
  },
  components: {

  }
}
</script>

<style>
.obob {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  top: 24%;
  width: 100%;
}
.obob > img {
  text-align: center;
  width: 93%;
}
.obob > div {
  position: absolute;
  width: 90%;
  height: 100%;
  text-align: center;
}
.text > div {
  text-indent: 10px;
}
.text > .obobs {
  font-size: 12px;
  color: #ff1b00;
  margin-top: 40px;
}
.text > .discount {
  font-size: 20px;
  margin-top: 35px;
  color: #ff1b00;
}
.text > .discount-date-text {
  color: #ae2e2e;
}
.obsde {
  height: 3vh;
  line-height: 3vh;
  font-size: 20px;
  color: #fff;
  margin-top: 14.5vh;
}
</style>
